using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Category_Struct
/// </summary>
public class Category_Struct
{
    private int _id =0;
    private string _name="";
    private int _parent=0;
    private string _indicator="";
    private int _priority=0;
    private int _type =0;
    private int _isprivate = 0;
    private string _term = "";

    public Category_Struct(int newid, string newname, string newterm, int newparent, string newindicator)
    {
        _id = newid;
        _name = newname;
        if (newterm == "")
            _term = newname;
        else
            _term = newterm;

        _parent = newparent;
        _indicator = newindicator;
    }
    
	public Category_Struct(int newid, string newname, string newterm, int newparent,int priority,int type, string newindicator,int isprivate)
	{
		_id = newid;
        _name = newname;
        if (newterm == "")
            _term = newname;
        else
            _term = newterm;
        _parent = newparent;
        _indicator = newindicator;
        _type = type;
        _priority = priority;
        _isprivate = isprivate;
        
	}

    public string Name
    {
        set
        {
            _name =value;
        }
        get
        {
            return _name;
        }
       
    }

    public string Term
    {
        set
        {
            _term = value;
        }
        get
        {
            return _term;
        }
    }

    public int ID
    {
        set
        {
            _id = value;
        }
        get
        {
            return _id;
        }
    }

    public int ParentID
    {
        set
        {
            _parent = value;
        }
        get
        {
            return _parent;
        }
    }

    public string Indicator
    {
        set
        {
            _indicator =value;
        }
        get
        {
            return _indicator;
        }
    }

    public int Priority
    {
        set
        {
            _priority = value;
        }
        get
        {
            return _priority;
        }
    }

    public int isPrivate
    {
        set
        {
            _isprivate = value;
        }
        get
        {
            return _isprivate;
        }
    }

    public int Type
    {
        set
        {
            _type = value;
        }
        get
        {
            return _type;
        }
    }

 
}
